FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SheetView クラス > AddChart メソッド : AddChart(CellRange[],Type,Int32,Int32,Int32,Int32) メソッド |
'Declaration
Public Overloads Function AddChart( _ ByVal cellRanges() As CellRange, _ ByVal seriesType As Type, _ ByVal width As Integer, _ ByVal height As Integer, _ ByVal x As Integer, _ ByVal y As Integer _ ) As SpreadChart
'使用法
Dim instance As SheetView Dim cellRanges() As CellRange Dim seriesType As Type Dim width As Integer Dim height As Integer Dim x As Integer Dim y As Integer Dim value As SpreadChart value = instance.AddChart(cellRanges, seriesType, width, height, x, y)
public SpreadChart AddChart( CellRange[] cellRanges, Type seriesType, int width, int height, int x, int y )
FarPoint.Win.Spread.Model.CellRange celRange1 = new FarPoint.Win.Spread.Model.CellRange(0, 0, 7, 2); FarPoint.Win.Spread.Model.CellRange celRange2 = new FarPoint.Win.Spread.Model.CellRange(0, 2, 7, 2); fpSpread1.Sheets[0].AddChart(new FarPoint.Win.Spread.Model.CellRange[] { celRange1, celRange2 }, typeof(FarPoint.Win.Chart.BarSeries), 400, 400, 0, 0);
Dim celRange1 As New FarPoint.Win.Spread.Model.CellRange(0, 0, 7, 2) Dim celRange2 = New FarPoint.Win.Spread.Model.CellRange(0, 2, 7, 2) FpSpread1.Sheets(0).AddChart(New FarPoint.Win.Spread.Model.CellRange() {celRange1, celRange2}, GetType(FarPoint.Win.Chart.BarSeries), 400, 400, 0, 0)